Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sysvinit-tools as an RPM package dependency #6965

Merged
merged 1 commit into from
Jul 12, 2016

Conversation

rossmcdonald
Copy link
Contributor

@rossmcdonald rossmcdonald commented Jul 6, 2016

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated

This PR reverts #6835, which added sysvinit-tools as an RPM dependency.

/cc @jsternberg

@jsternberg
Copy link
Contributor

This breaks non-systemd systems. The reason why this was added was for systems using sysvinit.

@rossmcdonald
Copy link
Contributor Author

@jsternberg Can you provide the error you see when installing on non-systemd systems? I believe we've always supported non-systemd systems, and I don't recall seeing any issues.

If we want to include it as a dependency, then we'll need to maintain multiple versions of the packages: one for systemd, and one for sysvinit.

@jsternberg jsternberg added this to the 1.0.0 milestone Jul 6, 2016
PID="$(cat $PIDFILE)"
if kill -0 "$PID" &>/dev/null; then
# Process is already up
log_success_msg "$NAME process is already running"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's some really weird indentation here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All weird indentation should be fixed. Looks like my editor mixed in tabs and spaces for indentation.

@jsternberg
Copy link
Contributor

Looks fine for the most part. There's a lot of weird indentation so double check for tabs/spaces and the proper indentation and otherwise I think this is good to go.

@jsternberg
Copy link
Contributor

Squash the commits and it LGTM on green. Have you tried installing it on both CentOS 6 and CentOS 7 to double check that it works?

@rossmcdonald rossmcdonald force-pushed the ross-package-fix branch 2 times, most recently from 7f34c17 to ab71033 Compare July 12, 2016 13:42
* Removes sysvinit-tools as an RPM package dependency.

* Update init script to not rely on sysvinit utils for backwards
  compatibility.

* Minor overall improvements to init script (improved error messages,
  comments, check for root privileges).

* Adds SLES support to post-installation script.
@rossmcdonald
Copy link
Contributor Author

@jsternberg Rebased, and tested on CentOS 5, 6, and 7, along with Ubuntu Trusty, Wily, and Xenial without issue.

@rossmcdonald rossmcdonald merged commit 30fb51d into master Jul 12, 2016
@mark-rushakoff mark-rushakoff deleted the ross-package-fix branch July 20, 2016 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants